package com.ukee.birthday.modules.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ukee.birthday.modules.entity.SysMenuEntity;

import java.util.List;

public interface SysMenuService extends IService<SysMenuEntity> {

    /**
     * 根据父菜单，查询子菜单
     * @param parentId 父菜单ID
     * @param menuIdList 用户菜单ID
     * @return
     */
    List<SysMenuEntity> queryListParentId(Long parentId,List<Long> menuIdList);

    List<SysMenuEntity> queryListParentId(Long parentId);

    /**
     * 获取用户菜单列表
     * @param userId
     * @return
     */
    List<SysMenuEntity> getUserMenuList(Long userId);

}
